######################
#  Replication code for 'Hookworm Eradication as a Natural Experiment for Schooling and Voting in the American South', forthcoming in Political Behavior
#  John Henderson
#  5/21/2017    
######################    

# readme.txt

All code and data are available in this replication dataset to rerun the main results from "Hookworm Eradication as a Natural Experiment". 

Contained in this replication dataset are the following files, embedded in the following structure:

~/replication :: folders where files are downloaded 

~/replication/code :: folder containing main code files 
	figure_1.R	figure_2.R	figure_3.R	figure_4a.R	figure_4b.R	table_1_and_2_campaign.R	table_1_and_2_pct_treated.R	table_1_and_3_campaign_6to13.R	table_1_and_3_campaign_14to17.R	table_1_and_3_pct_treated_6to13.R	table_1_and_3_pct_treated_14to17.R	table_4_campaign.R	table_4_pct_treated.R

~/replication/data :: folder containing main dataset object
	hookwormData.Rdata

~/replication/figures :: folder containing figures produced from code
	figure_1_hookmap_small_bw.pdf	figure_1_hookmap_small.pdf	figure_2_educBinned_after.pdf	figure_2_voteBinned_after.pdf	figure_3a_before.pdf	figure_3b_after.pdf	figure_4a_campaignExcluded_bw.pdf	figure_4a_campaignExcluded.pdf	figure_4b_pct_treatedExcluded_bw.pdf	figure_4b_pct_treatedExcluded.pdf

~/replication/fstat :: folder containing data and code for stata to produce F-stats
	campaignAFTER_6to13.dta	campaignAFTER_14to17.dta	campaignAFTER.dta	campaignBEFORE_6to13.dta	campaignBEFORE_14to17.dta	campaignBEFORE.dta	pct_treatedAFTER_6to13.dta	pct_treatedAFTER_14to17.dta	pct_treatedAFTER.dta	pct_treatedBEFORE_6to13.dta	pct_treatedBEFORE_14to17.dta	pct_treatedBEFORE.dta	table_2_iv_fstats_campaign.do	table_2_iv_fstats_campaign.log	table_2_iv_fstats_pct_treated.do	table_2_iv_fstats_pct_treated.log	table_3_iv_fstats_campaign_6to13.do	table_3_iv_fstats_campaign_14to17.do	table_3_iv_fstats_pct_treated_6to13.do	table_3_iv_fstats_pct_treated_14to17.do

~/replication/funs :: folder containing functions called by main code
	balFun.R	lower.bound.R	mahalFun.R	mahalMatch.R	nbpGreedy.R	pscoreFun.R

~/replication/appendix :: folder containing additional code and analysis in the supplemental appendix